package com.zhangkang.stock.stocklib.view

import android.graphics.Rect
import androidx.core.util.Pools.SimplePool

/**
 * @author : Android-张康
 * created on: 2023/5/9 18:31
 * description:
 */
class RectPool : SimplePool<Rect>(16) {

    override fun acquire(): Rect {
        val rect = super.acquire() ?: Rect()
        rect.setEmpty()
        return rect
    }
}